﻿using UnityEngine;

namespace E.Story
{
    /// <summary>
    /// 错误数据
    /// </summary>
    public class ErrorData
    {
        /// <summary>
        /// 错误颜色
        /// </summary>
        public Color Color { get; set; }

        public ErrorData()
        {
            GeneratrRandomColor();
        }

        /// <summary>
        /// 生成随机颜色
        /// </summary>
        private void GeneratrRandomColor()
        {
            Color = new Color32
            (
                (byte) Random.Range(80, 120),
                (byte) Random.Range(60, 100),
                (byte) Random.Range(40, 80),
                255
            );
        }
    }
}